package gateway

type GatewayConfig struct {
	// 网关信息
	//
	ProductKey string
	//
	DeviceName string

	Model string

	// 唯一识别码
	DeviceId string
}

func (c *GatewayConfig) UpdateFromRaw(rawConfig interface{}) bool {
	configuration, ok := rawConfig.(*GatewayConfig)
	if !ok {
		return false //errors.New("unable to cast raw config to type 'ServiceConfig'")
	}

	*c = *configuration
	return true
}
